package cn.dengta.webapp.trade.entity;

import java.math.BigDecimal;
import java.util.Date;

import cn.dengta.webapp.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 充值全额返日志
 *
 * @author lgy
 * @since 2022-09-08
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName("act_double_recharge_log")
public class ActDoubleRechargeLog extends BaseEntity {

	/** 用户ID */
	private Long userId;
	/** 领取天数 */
	private Integer day;
	/** 钻石数 */
	private Integer coin;
	/** 奖励比例 */
	private BigDecimal awardRate;
	/** 充值全额返ID */
	private Long actDoubleRechargeId;
	/** 添加时间 */
	private Date addTime;
	/** 业务状态：-1=退款，1=已领 */
	private Integer status;

	public ActDoubleRechargeLog init(Long userId, Integer day, Integer coin, BigDecimal awardRate, Long actDoubleRechargeId, Date addTime, Integer status) {
		this.userId = userId;
		this.day = day;
		this.coin = coin;
		this.awardRate = awardRate;
		this.actDoubleRechargeId = actDoubleRechargeId;
		this.addTime = addTime;
		this.status = status;
		return this;
	}

	public static final String USER_ID = "user_id";
	public static final String DAY = "day";
	public static final String COIN = "coin";
	public static final String AWARD_RATE = "award_rate";
	public static final String ACT_DOUBLE_RECHARGE_ID = "act_double_recharge_id";
	public static final String ADD_TIME = "add_time";
	public static final String STATUS = "status";

}
